package com.guigu.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("products")
public class Products {
    @TableId(type = IdType.AUTO)

    private Integer productId;

    private Integer supplierId;

    private Integer categoryId;

    private String name;

    
    private String description;


    private float salePrice;

    private Byte status;


    private Date createdAt;


    private Date updatedAt;

    @TableField(exist = false)
    private List<ProductCategory> productCategory;

    @TableField(exist = false)
    private Inventory inventory;

    @TableField(exist = false)
    private List<ProductImage> images;


  }